import { request } from '@/renderer/utils/request';

export type DictType = 'gender' | 'sell_status';

export async function getDictData(params: { type: DictType }) {
  return request<any>({
    url: '/dict/data',
    method: 'GET',
    params,
  });
}
export async function queryPageNodeType(data,params) {
  return request<any>({
    url: '/nodeType/queryPageNodeType',
    method: 'post',
    data,
    params,
  });
}
export async function queryPageNodeData(data,params) {
  return request<any>({
    url: '/nodeData/queryPageNodeData',
    method: 'post',
    data,
    params,
  });
}
export async function queryPageEdgeData(data,params) {
  return request<any>({
    url: '/edgeData/queryPageEdgeData',
    method: 'post',
    data,
    params,
  });
}




export async function editProcessData(data,params) {
  return request<any>({
    url: '/nodeData/editProcessData',
    method: 'post',
    data,
    params,
  });
}



export async function queryPageKnowledgeConclusionByIds(data) {
  return request<any>({
    url: '/knowledgeConclusion/queryPageKnowledgeConclusionByIds',
    method: 'post',
    data,
  });
}


export async function syncKnowledgeConDetail(data) {
  return request<any>({
    url: '/knowledge/syncKnowledgeConDetail',
    method: 'post',
    data,
  });
}


export async function getKnowledgeDetail(params) {
  return request<any>({
    url: '/knowledge/getKnowledgeDetail',
    method: 'post',
    params,
  });
}





export async function addFile(data) {
  return request<any>({
    url: '/file/addFile',
    method: 'post',
    data,
  });
}
